const exportUrl = "https://ali.ikenway.net:18443/api/order/export";

let token = sessionStorage.getItem("token");

function exportExcel() {
    fetch(exportUrl, {
        method: 'GET',
        headers: {
            'Authorization': token
        }
    }).then(res => {
        res.json().then(json => {
            // console.log(json);
            alertMsg(json.msg);
            window.location.href = json.data.url;
        })
    })
}